export function getCategories() {
    return new Promise(resolve => {
        axios.post("/category/getCategories").then(resp => {
            resolve(resp.data);
        }).catch(() => resolve({code: 204, message: '服务器连接失败'}));
    });
}
